package com.FQJ.stock.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 定义http客户端工具bean
 */
@Configuration
public class HttpClientConfig {
	/**
	 * 定义客户端bean
	 * @return
	 */
	@Bean
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}

}
